PDF Xpress for ActiveX - User Guide > How To > Save PDF to Memory |
PDF Xpress™ supports saving a PDF document to memory.
To save an open PDF document to memory:
Remote file access (HTTP / FTP) is not supported by PDF Xpress. |
VB Example |
Copy Code
|
---|---|
'This code demonstrates saving a PDF to memory On Error GoTo error Dim pdfxpress1 As New Pdfxpress pdfxpress1.Initialize pdfxpress1.RaiseExceptions = True Dim document As New PdfDocument document.SetParentControl pdfxpress1 Dim so As New saveOptions Dim hGlobal As Long document.SaveDocumentToHandle so, hGlobal . . . GoTo finish error: MsgBox pdfxpress1.PdfError finish: Set document = Nothing pdfxpress1.Terminate Set pdfxpress1= Nothing |